package cn.wolfcode.wolf2w.query;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class TravelCondition {
    private int min ;
    private int max ;
    //创建一个接收键值对类型的数据
    public static final Map<Integer,TravelCondition> DAY_TYPE ;
    public static final Map<Integer,TravelCondition> PEREXPEND_TYPE ;

    static {
        //初始化map
        DAY_TYPE = new HashMap<>();
        DAY_TYPE.put(1,new TravelCondition(0,3));
        DAY_TYPE.put(2,new TravelCondition(4,7));
        DAY_TYPE.put(3,new TravelCondition(8,14));
        DAY_TYPE.put(4,new TravelCondition(15,Integer.MAX_VALUE));

        PEREXPEND_TYPE = new HashMap<>();
        PEREXPEND_TYPE.put(1,new TravelCondition(1,999));
        PEREXPEND_TYPE.put(2,new TravelCondition(1000,6000));
        PEREXPEND_TYPE.put(3,new TravelCondition(6001,20000));
        PEREXPEND_TYPE.put(4,new TravelCondition(20001,Integer.MAX_VALUE));
    }


}
